package cn.jiguang.jgadpubadapter;

/**
 * @author maipian
 * @description 描述
 * @date 12/9/24
 */
public class JGBZInitManager {
    private static JGBZInitManager instance;

    private JGBZCustomController jgBzCustomController = new JGBZCustomController();

    public static JGBZInitManager getInstance() {
        if (instance == null) {
            synchronized (JGBZInitManager.class) {
                if (instance == null) {
                    instance = new JGBZInitManager();
                }
            }
        }
        return instance;
    }

    public void setJGBZCustomController(JGBZCustomController jgBzCustomController) {
        this.jgBzCustomController = jgBzCustomController;
    }

    public String getOaid() {
        if (jgBzCustomController != null) {
            return jgBzCustomController.getOaid();
        }
        return "";
    }

    public String getVaid() {
        return "";
    }

    public String geAndroidId() {
        if (jgBzCustomController != null) {
            return jgBzCustomController.geAndroidId();
        }
        return "";
    }

    public String getMac() {
        if (jgBzCustomController != null) {
            return jgBzCustomController.getMac();
        }
        return "";
    }

    public String getImei() {
        if (jgBzCustomController != null) {
            return jgBzCustomController.getImei();
        }
        return "";
    }

    public boolean isDebug() {
        if (jgBzCustomController != null) {
            return jgBzCustomController.isDebug();
        }
        return true;
    }

    public boolean isCanUseWifiState() {
        if (jgBzCustomController != null) {
            return jgBzCustomController.isCanUseWifiState();
        }
        return true;
    }

    public boolean isCanUsePhoneState() {
        if (jgBzCustomController != null) {
            return jgBzCustomController.isCanUsePhoneState();
        }
        return true;
    }

    public boolean isCanUseLocation() {
        if (jgBzCustomController != null) {
            return jgBzCustomController.isCanUseLocation();
        }
        return true;
    }

    public boolean isAgreePrivacyStrategy() {
        if (jgBzCustomController != null) {
            return jgBzCustomController.isAgreePrivacyStrategy();
        }
        return true;
    }

}
